/**
 * 零基础学C语言
 * 
 * version: 1st
 * author: 明日科技
 * http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    char str1[] = "grasp now, don't mourn the past, not to sorrow in the future.";
    char str2[50], *p1, *p2;

    p1 = str1;
    p2 = str2;
    while(*p1 != '\0') {
        *p2 = *p1;
        p1++;
        p2++;
    }
    *p2 = '\0';

    printf("Now the str2 is: \n");
    puts(str2);

    return 0;
}

/*
output:
Now the str2 is: 
grasp now, don't mourn the past, not to sorrow in the future.
*/